package com.example.factory;

import com.example.entity.LongEvent;
import com.lmax.disruptor.EventFactory;

/**
 * @ClassName LongEventFactory
 * @Description TODO
 * @Author zhaoluowei
 * @Date 2019/9/7  1:02
 * @Version 1.0
 *
 * 定义工厂类 实例化  刚刚的事件对象
 */

public class LongEventFactory implements EventFactory<LongEvent> {


    @Override
    public LongEvent newInstance() {
        return new LongEvent();
    }
}
